package com.keensense.vcm.model;

import com.keensense.vcm.model.enums.AuthModeEnum;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * @author lanjian
 * @date 2020/8/1
 */
@XmlRootElement(name = "request")
public class SubscriptionRequest {


    private CallBackUrl callBackUrl;

    private String taskId;

    private String suspectId;

    private String camera;

    private Integer dataType;

    private Integer dataFormat;

    @XmlElement
    public CallBackUrl getCallBackUrl() {
        return callBackUrl;
    }

    public void setCallBackUrl(CallBackUrl callBackUrl) {
        this.callBackUrl = callBackUrl;
    }

    @XmlElement
    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    @XmlElement
    public String getSuspectId() {
        return suspectId;
    }

    public void setSuspectId(String suspectId) {
        this.suspectId = suspectId;
    }

    @XmlElement
    public String getCamera() {
        return camera;
    }

    public void setCamera(String camera) {
        this.camera = camera;
    }

    @XmlElement
    public Integer getDataType() {
        return dataType;
    }

    public void setDataType(Integer dataType) {
        this.dataType = dataType;
    }

    @XmlElement
    public Integer getDataFormat() {
        return dataFormat;
    }

    public void setDataFormat(Integer dataFormat) {
        this.dataFormat = dataFormat;
    }

    public static class CallBackUrl {

        public CallBackUrl(String master) {
            this.master = master;
        }

        private String master;

        private String slave;

        private AuthModeEnum authMode;

        @XmlElement
        public String getMaster() {
            return master;
        }

        public void setMaster(String master) {
            this.master = master;
        }

        @XmlElement
        public String getSlave() {
            return slave;
        }

        public void setSlave(String slave) {
            this.slave = slave;
        }

        @XmlElement
        public AuthModeEnum getAuthMode() {
            return authMode;
        }

        public void setAuthMode(AuthModeEnum authMode) {
            this.authMode = authMode;
        }
    }

}
